package com.bgrc.hubu12305.common;

import lombok.Getter;

/**
 * 包名:com.bgrc.hubu12305.common
 * 用户:86182
 * 时间:20211214:432021/12/9
 */
@Getter
public enum CodeEnum {
    SUCCESS(200,"成功"),
    FAIL(201, "失败"),
    //USER_ERROR(205,"账号或密码错误"),
    UNKNOWN_ACCOUNT(205,"找不到当前用户"),
    PASSWORD_ERROR(206,"密码错误"),
    REPEATED_USER(207,"用户已存在"),
    STATION_EXIST(208,"已存在该站"),
    STATION_INEXISTENT(209,"不存在该站"),
    TRAIN_EXIST(210,"该车已被停用，请更换列车编号")
    ;
    private Integer code;
    private String message;

    CodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
